﻿using MySpa.Contants;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MySpa.Extensions
{
    public static class Helper
    {
        public static string CustomerId(this int id)
        {
            return "CUS" + id.ToString("00000");
        }

        public static string DateTime(this HtmlHelper htmlHelper, DateTime? value)
        {
            return (value != null && value.Value != System.DateTime.MinValue) ? value.Value.ToString("dd/MM/yyyy") : string.Empty;
        }
    }
}